package com.after.saas.gateway.controller;

import com.after.saas.common.constants.CommonCodeEnum;
import com.after.saas.common.constants.Result;
import com.after.saas.common.utils.ResponseUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Classname FallbackController
 * @Description TODO
 * @Date 2021/6/15 13:57
 * @Created by hjchen
 */

@Slf4j
@RestController
@RequestMapping("/fallback")
public class FallbackController {

    @GetMapping
    public Result fallback() {
        return ResponseUtil.FAILURE(CommonCodeEnum.SERVICE_UNABLE);
    }
}